#include "dialogloginselect.h"
#include "dialogloginpad.h"
#include "ui_dialogloginselect.h"

DialogLoginSelect::DialogLoginSelect(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DialogLoginSelect)
{
    ui->setupUi(this);

#if INDOOREMBED
    setWindowFlags(Qt::FramelessWindowHint);//隐藏窗口标题栏
#endif

    //取消按键虚线框
    ui->pbn_home->setFocusPolicy(Qt::NoFocus);
    ui->pbn_back->setFocusPolicy(Qt::NoFocus);
    ui->pbn_basic->setFocusPolicy(Qt::NoFocus);
    ui->pbn_advanced->setFocusPolicy(Qt::NoFocus);


    ui->pbn_home->setText("");
    ui->pbn_back->setText("");
    ui->pbn_basic->setText("");
    ui->pbn_advanced->setText("");

    connect(ui->pbn_back, SIGNAL(clicked()), this, SLOT(close()));
}

DialogLoginSelect::~DialogLoginSelect()
{
    delete ui;
}

void DialogLoginSelect::paintEvent(QPaintEvent *event)
{
    printf("DialogHomeNavigation paintEvent \n");
}

void DialogLoginSelect::on_pbn_advanced_clicked()
{
    DialogLoginPad *dialog = new DialogLoginPad(this);
    dialog->setModal(true);
    //dialog->show();
    dialog->exec();
    delete dialog;
}
